import { createRouter, createWebHashHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/riddle',
    name: 'Riddle',
    component: () => import('../views/RiddleGame.vue')
  },
  {
    path: '/idiom',
    name: 'Idiom',
    component: () => import('../views/Idiom.vue')
  },
  {
    path: '/brain-teaser',
    name: 'BrainTeaser',
    component: () => import('../views/BrainTeaser.vue')
  },
  {
    path: '/draw-guess',
    name: 'DrawGuess',
    component: () => import('../views/DrawGuess.vue')
  },
  {
    path: '/couplet-game',
    name: 'CoupletGame',
    component: () => import('../views/CoupletGame.vue')
  },
  {
    path: '/settings',
    name: 'Settings',
    component: () => import('../views/Settings.vue')
  },
  {
    path: '/drawguess',
    name: 'DrawGuessMobile',
    component: () => import('../views/DrawGuessMobile.vue')
  },
  {
    path: '/draw-guess-mobile',
    name: 'DrawGuessMobileAlias',
    component: () => import('../views/DrawGuessMobile.vue')
  },
  {
    path: '/error-test',
    name: 'ErrorTest',
    component: () => import('../views/ErrorTest.vue')
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;
